﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace RadarSim
{
	public partial class SfMain:PageBase
	{
        public SfMain()
		{
			this.InitializeComponent();

            zdsmGrid.Visibility = Visibility.Visible;
            xjgrGrid.Visibility = Visibility.Collapsed;
            sdqpGrid.Visibility = Visibility.Collapsed;
			// 在此点之下插入创建对象所需的代码。
		}

        public bool AppConfigClick()
        {

            return true;
        }
        public bool ControlArgsClick()
        {
            this.CtrlArgs.Visibility = Visibility.Visible;
            this.grgrid2.Visibility = Visibility.Collapsed;
            zdsmGrid.Visibility = Visibility.Visible;
            xjgrGrid.Visibility = Visibility.Collapsed;
            sdqpGrid.Visibility = Visibility.Collapsed;
            zdsmRbtn.SARIsChecked = true;
            return true;
        }
        public bool InitArgsClick()
        {
            this.CtrlArgs.Visibility = Visibility.Collapsed;
            this.grgrid2.Visibility = Visibility.Visible;
            return true;
        }
        public bool RealTimeInfoClick()
        {
            this.CtrlArgs.Visibility = Visibility.Collapsed;
            this.grgrid2.Visibility = Visibility.Visible;
            return true;
        }


        private void zdsmRbtn_SAR_RadioBtnChecked(object sender, MouseButtonEventArgs e)
        {
            if (zdsmGrid != null)
            {
                zdsmGrid.Visibility = Visibility.Visible;
                xjgrGrid.Visibility = Visibility.Collapsed;
                sdqpGrid.Visibility = Visibility.Collapsed;
            }
           

        }

        private void sdqpRbtn_SAR_RadioBtnChecked(object sender, MouseButtonEventArgs e)
        {
            if (zdsmGrid != null)
            {
                zdsmGrid.Visibility = Visibility.Collapsed;
                xjgrGrid.Visibility = Visibility.Collapsed;
                sdqpGrid.Visibility = Visibility.Visible;
            }

        }

        private void xjgrRbtn_SAR_RadioBtnChecked(object sender, MouseButtonEventArgs e)
        {
            if (zdsmGrid != null)
            {
                zdsmGrid.Visibility = Visibility.Collapsed;
                xjgrGrid.Visibility = Visibility.Visible;
                sdqpGrid.Visibility = Visibility.Collapsed;
            }


        }
        private void undealBtn_SAR_RadioBtnChecked(object sender, MouseButtonEventArgs e)
        {
            if (zdsmGrid != null)
            {
                zdsmGrid.Visibility = Visibility.Collapsed;
                xjgrGrid.Visibility = Visibility.Collapsed;
                sdqpGrid.Visibility = Visibility.Collapsed;
            }

        }
	}
}